﻿<Window x:Class="SolidMvvm.WindowDeluxe"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Name="windowDeluxe">
    <Window.Resources>
        <Style TargetType="ItemsControl">
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <DockPanel>
        <Menu DockPanel.Dock="Top" IsMainMenu="true">
            <MenuItem Header="File">
                <MenuItem Header="New" />
            </MenuItem>
        </Menu>
        <StatusBar DockPanel.Dock="Bottom">
            <StatusBar.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </StatusBar.ItemsPanel>
            <StatusBarItem>
                <ItemsControl x:Name="itemsControlLeft" />
            </StatusBarItem>
            <StatusBarItem Grid.Column="2">
                <ItemsControl x:Name="itemsControlCenter" />
            </StatusBarItem>
            <StatusBarItem Grid.Column="4">
                <ItemsControl x:Name="itemsControlRight" />
            </StatusBarItem>
        </StatusBar>
        <ContentPresenter Content="{Binding ClientContent, ElementName=windowDeluxe}" />
    </DockPanel>
</Window>